// looop.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <string>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>

using namespace std;

void wait ( int seconds )
{
	clock_t endwait;
	endwait = clock () + seconds * CLOCKS_PER_SEC;
	while (clock() < endwait) {}
}

int _tmain(int argc, _TCHAR* argv[])
{
	int count_down;
	
	cout << "Quickly! you have ten seconds to difuse this bomb!\n" << endl;

	count_down=10;

	for( count_down; count_down>=0; count_down--)
	{
		cout << "there are" << count_down << "seconds left.\n" <<endl;

		for (int sec=1; sec>0; sec--)
		{
			 wait(100);
		}
	}

	cout << "you escaped....this time!\n";

	return 0;
}


